package com.ellison.demo.java8.function;

/**
 * <p>TODO</p>
 *
 * @author Ellison_Pei
 * @date 2021/11/6 15:49
 * @since 1.0
 **/
public class Test {

    @org.junit.Test
    public void test(){
//        new UseMyNumber(new MyNumber() {
//            @Override
//            public double getValue() {
//                return 0.2;
//            }
//        });

        new UseMyNumber(() -> 0.2);

    }
}
